//
//  AccountRegisterViewController.h
//  Finance
//
//  Created by Hu Jianguo on 13-4-16.
//  Copyright (c) 2013年 cheng xiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AccountRegisterViewController : UIViewController<UITextFieldDelegate>
{
    UIButton*           btnRegister;

    UIButton*           btnGetReigisterCode;
    
    UITextField*        txtUserName;
    UITextField*        txtUserPassword;
    UITextField*        txtUserPasswordConfirm;
    UITextField*        txtUserEmail;
    UITextField*        txtRegisterCode;
    
}

@property(nonatomic,strong) IBOutlet UITextField*        txtUserName;
@property(nonatomic,strong) IBOutlet UITextField*        txtUserPassword;
@property(nonatomic,strong) IBOutlet UITextField*        txtUserPasswordConfirm;
@property(nonatomic,strong) IBOutlet UITextField*        txtUserEmail;
@property(nonatomic,strong) IBOutlet UITextField*        txtRegisterCode;
@property(nonatomic,strong) IBOutlet UIButton*           btnRegister;
@property(nonatomic,strong) IBOutlet UIButton*           btnGetReigisterCode;

-(IBAction)userRegister:(id)sender;
-(IBAction)getRegisterCode:(id)sender;

-(void)showMessageBox:(NSString*)title content:(NSString*)content;

//-(void)getReturnRegisterCode:(NSData*)jsonData;

//btnGetReigisterCode-(NSDictionary*)setPackketBody:(NSString*)number;

-(NSDictionary*)setRegisterBody:(NSString*)userName UserPassword:(NSString*)userPassword
                      UserEmail:(NSString*)userEmail  CheckCode:(NSString*)checkCode;

-(void)sendRegister:(NSData*)recervedData;

-(void)showLogin:(NSString*)userName;

-(void)changeTxtFieldPosition:(NSInteger)pos TextFieldFrame:(CGRect)frame;
@end
